//
//  NSString+RichText.h
//  YanTaiBang
//
//  Created by broad zou on 12-10-5.
//  Copyright (c) 2012年 UEXSS. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kRichTextImageBeginFlag @"["
#define kRichTextImageEndFlag   @"]"

@interface NSString (RichText)

- (void)parseRichTextToArray:(NSMutableArray*)array_;
- (CGSize)sizeOfRichTextWithFontSize:(float)fontSize_ andConstrainedToWidth:(float)width_ andCutNumber:(int)cutNum_;
- (void)drawRichTextToView:(UIView*)view_ andFontSize:(float)fontSize_ andConstrainedToWidth:(float)width_ andLeftOff:(float)leftOff_ andTopOff:(float)topOff_ andCutNumber:(int)cutNum_;
- (void)drawRichTextToView:(UIView*)view_ andFontSize:(float)fontSize_ andConstrainedToWidth:(float)width_ andLeftOff:(float)leftOff_ andTopOff:(float)topOff_ wordsColor:(UIColor*)inColor;
@end
